	//文件来自content/fields/typeid
	function typeid($field, $value, $fieldinfo) {
		//$field,typeid
		//$value=""
//$fieldinfo array(29) { ["fieldid"]=> string(3) "109" ["modelid"]=> string(2) "12" ["siteid"]=> string(1) "1" ["field"]=> string(6) "typeid" ["name"]=> string(6) "类别" ["tips"]=> string(0) "" ["css"]=> string(0) "" ["minlength"]=> string(1) "0" ["maxlength"]=> string(1) "0" ["pattern"]=> string(0) "" ["errortips"]=> string(0) "" ["formtype"]=> string(6) "typeid" ["setting"]=> string(34) "{"minnumber":"","defaultvalue":""}" ["formattribute"]=> string(0) "" ["unsetgroupids"]=> string(0) "" ["unsetroleids"]=> string(0) "" ["iscore"]=> string(1) "0" ["issystem"]=> string(1) "1" ["isunique"]=> string(1) "0" ["isbase"]=> string(1) "1" ["issearch"]=> string(1) "1" ["isadd"]=> string(1) "1" ["isfulltext"]=> string(1) "0" ["isposition"]=> string(1) "0" ["listorder"]=> string(1) "2" ["disabled"]=> string(1) "0" ["isomnipotent"]=> string(1) "0" ["minnumber"]=> string(0) "" ["defaultvalue"]=> string(0) "" }
		extract($fieldinfo);
		$setting = string2array($setting);
		if(!$value) $value = $setting['defaultvalue'];
		if($errortips) {
			$errortips = $this->fields[$field]['errortips'];
			$this->formValidator .= '$("#'.$field.'").formValidator({onshow:"",onfocus:"'.$errortips.'"}).inputValidator({min:1,onerror:"'.$errortips.'"});';
		}
		$usable_type = $this->categorys[$this->catid]['usable_type'];
		$usable_array = array();
		if($usable_type) $usable_array = explode(',',$usable_type);
		
		//获取站点ID
		if(intval($_GET['siteid'])){
			$siteid = intval($_GET['siteid']);
		}else{
			$siteid = $this->siteid;
		}
		$type_data = getcache('type_content_'.$siteid,'commons');
		
		//echo json_encode($type_data );
		
		if($type_data) {
			foreach($type_data as $_key=>$_value) {
				if(in_array($_key,$usable_array)) {
					$data[$_key] = $_value['name'];
					$item[$_key] = $_value['dd'];
				}
				
			}
			
		}
		//获取站点ID
			foreach($data as $key=>$value) {
			foreach($item[$key] as $_key=>$_value) {
			
				
					$item[$key][$_key]['itemtxt'] = $_value['itemtxt'];
					$item[$key][$_key]['value'] = $_value['id'];
				
			}
			$css='style="margin-right:15px;"';
			$string .= $value.':'.form::select2($item[$key],$value,'name="info['.$field.'][]" id="'.$field.$key.'" '.$formattribute.' '.$css,L('copyfrom_tips'));
		}
		//获取站点ID
		return $string;
		//return form::select($data,$value,'name="info['.$field.']" id="'.$field.'" '.$formattribute.' '.$css,L('copyfrom_tips'));

	}
